package com.ruoyi.auth.constant;

/**
 * 常量
 * email：954219492@qq.com
 */
public class UnifiedAuthenticationConstants {

    public static final String ORIGIN_PC = "0";
    public static final int TIMEOUT = 5000;
    public static final String RESPONSE_OK_CODE = "200";

    public interface ServiceName {
        String retrieveToken = "ticketValidate";
        String retrieveNaturalUser = "findPerUserByToken";
        String retrieveLegalUser = "findCorUserByToken";
    }

    public interface Algorithm {
        String RSA = "RSA";
        String SM2 = "SM2";
    }

    public interface ContentKey {
        String ticket = "ticket";
        String token = "token";
    }

    public interface BizContentJsonKey {
        String appId = "appMark";
        String serviceName = "servicename";
        String params = "params";
    }

    public interface ParameterName {
        String appId = "app_id"; // appMark
        //        String appMark = "appMark";
        String interfaceId = "interface_id";
        String version = "version";
        String bizContent = "biz_content";
        String charset = "charset";
        String timestamp = "timestamp";
        String origin = "origin";
        String sign = "sign";
    }

}
